//路由表
import component from "element-plus/es/components/tree-select/src/tree-select-option.mjs";
import { markRaw } from "vue";

export const routes = markRaw([
  {
    path: "/",
    component: () => import("@/views/home/Home.vue"),
  },
  {
    path: "/login",
    component: () => import("@/views/login/Login.vue"),
  },
  {
    path: "/products",
    component:()=>import('@/views/products/Products.vue'),
    children: [
      {
        path:'classify',
        component:()=>import('@/views/products/modules/Classify.vue')
      }
    ]
  },
  {
    path: "/system",
    component: () => import("@/views/System/System.vue"),
    meta: {
      title: "系统管理",
    },
    children: [
      {
        path: "user",
        component: () => import("@/views/System/modules/user/SystemUser.vue"),
        meta: {
          title: "用户管理",
        },
      },
      {
        path: "role",
        component: () => import("@/views/System/modules/role/SystemRole.vue"),
        meta: {
          title: "角色管理",
        },
      },
      // {
      //   path: "role-assigned",
      //   component: () => import("@/views/System/modules/role/SystemRoleAssigned.vue"),
      //   meta: {
      //     title: "角色授权",
      //   },
      // },
    ],
  },
]);
